package com.cq.hd.product.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_goods")
@ApiModel(value="TbGoodsPo对象", description="商品表")
public class TbGoodsPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商户id")
    @TableField("merchant_id")
    private Long merchantId;

    @ApiModelProperty(value = "商品标题")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "商品图片")
    @TableField("goods_imgs")
    private String goodsImgs;

    @ApiModelProperty(value = "商品售价")
    @TableField("goods_price")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "划线价格")
    @TableField("origin_price")
    private BigDecimal originPrice;

    @ApiModelProperty(value = "总库存")
    @TableField("total_stock")
    private Integer totalStock;

    @ApiModelProperty(value = "剩余库存")
    @TableField("remain_stock")
    private Integer remainStock;

    @ApiModelProperty(value = "销量")
    @TableField("sale_count")
    private Integer saleCount;

    @ApiModelProperty(value = "使用说明/详情")
    @TableField("details")
    private String details;

    @ApiModelProperty(value = "商品状态（1-待发布(草稿箱)，2-已下架(待发售)，3-已上架）")
    @TableField("goods_state")
    private Integer goodsState;

    @ApiModelProperty(value = "上架时间")
    @TableField("up_time")
    private LocalDateTime upTime;

    @ApiModelProperty(value = "下架时间")
    @TableField("off_time")
    private LocalDateTime offTime;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;

    @ApiModelProperty(value = "核销方式（只对报名活动有效）：0-系统，1-票付通")
    @TableField("verify_type")
    private Integer verifyType;

    @ApiModelProperty(value = "票付通产品ID")
    @TableField("pft_product")
    private String pftProduct;

    @ApiModelProperty(value = "票付通门票ID")
    @TableField("pft_ticket")
    private String pftTicket;

    @ApiModelProperty(value = "票付通供应商ID")
    @TableField("pft_supplier")
    private String pftSupplier;

    @ApiModelProperty(value = "商家商户id（商家商户可以给普通商户上架商品）")
    private Long businessMerchantId;

}
